package com.example.demo.customer;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;
@Component
@Primary
public class CustomerRepository implements CustomerRepo{
    @Override
    public List<Customer> getCustomers(){
        return  Collections.singletonList(
                new Customer(1L, "TODO,实现真实的数据库")
        );
    }

}
